* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 0;
}

.container {
  margin: 0 180px;
}

.container p {
  margin: 20px 0;
  font-size: 15px;
  color: #6e6e6e;
  text-align: center;
}

#img-box {
  display: grid;
  grid-template-columns: repeat(4, 255px);
  grid-template-rows: 170px;
  grid-gap: 20px;
  justify-content: center;
  margin: 50px 0;
}

img {
  width: 255px;
  height: 170px;
}

#img-box img:hover {
  opacity: 0.7;
}

/* 遮罩 */
#modal-box {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  top: 0px;
  left: 0px;
  z-index: 1;
}

#modal-container {
  width: 720px;
  height: 480px;
  background-color: #f6f6f6;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
}

#insert-img {
  display: block;
  margin: 10px;
  height: 150px;
  width: 225px;
}

#close {
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 5px;
  right: 2%;
  color: #6e6e6e;
}

#insert-title {
  font-size: 30px;
}